﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gqq.CSharpindepth2.DesignPatterns.Observer
{
    public interface IObserver
    {
        //被观察的对象
        ISubject Subject { get; set; }

        //将观察者的行为注册到subject类中去
        void DoRegister();

        //定义观察者的动作
        void Acition();

    }

}
